//
//  TextLabelTableViewCell.m
//  TextApplication
//
//  Created by dllo on 16/9/10.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "TextLabelTableViewCell.h"
#import "TAMacro.h"
#import "ClassifySecond.h"
@interface TextLabelTableViewCell ()
@property (nonatomic, strong) UILabel *tableLabel;

@end

@implementation TextLabelTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _tableLabel = [[UILabel alloc] init];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _tableLabel.frame = CGRectMake(20, 0, 200, 44);
    [self.contentView addSubview:_tableLabel];
    _tableLabel.textColor = [UIColor lightGrayColor];
}

- (void)setLabel:(ClassifySecond *)label {
    _label = label;
    _tableLabel.text = _label.cat_name;
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
